#include "MyStdio.h"


#define filename "test.txt"


int main()
{
    _FILE* fp = _fopen(filename, "w");
    if(fp == NULL)
        return -1;

    const char* msg = "Hello Linux\n";
    int count = 5;
    while(count)
    {
        _fwrite(fp, msg, strlen(msg));
        count--;
        sleep(1);
    }
    sleep(5);

    _fclose(fp);

    return 0;
}
